package com.happycat.social.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.happycat.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;


/**
 * 语音聊天室房间
 * 
 * @author jsonbin
 * @date 2020-09-10
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@TableName("social_voice_room")
@ApiModel(value="语音聊天室房间", description="语音聊天室房间")
public class SocialVoiceRoom extends BaseEntity<Long> {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "房间分类")
    @TableField(value = "room_category_id")
    private Long roomCategoryId;

    @ApiModelProperty(value = "聊天室房间号，第三方房间id(如声网的channelName)")
    @TableField(value = "room_id")
    private String roomId;

    @ApiModelProperty(value = "房间名称")
    @TableField(value = "name")
    private String name;

    @ApiModelProperty(value = "房间简介")
    @TableField(value = "introduction")
    private String introduction;

    @ApiModelProperty(value = "房间欢迎语")
    @TableField(value = "welcome_desc")
    private String welcomeDesc;

    @ApiModelProperty(value = "房主id,平台用户id")
    @TableField(value = "create_account_id")
    private Long createAccountId;

    @ApiModelProperty(value = "房主账号(第三方用户id)")
    @TableField(value = "creator")
    private String creator;

    @ApiModelProperty(value = "管理员账号")
    @TableField(value = "manager")
    private String manager;

    @ApiModelProperty(value = "房间缩略图")
    @TableField(value = "thumbnail")
    private String thumbnail;

    @ApiModelProperty(value = "房间头像")
    @TableField(value = "avatar")
    private String avatar;

    @ApiModelProperty(value = "房间是否有效，0-不是；1-是")
    @TableField(value = "valid")
    private String valid;

    @ApiModelProperty(value = "房间状态:0申请中,1审核通过(有效),2审核不通过")
    @TableField(value = "audit_status")
    private String auditStatus;

    @ApiModelProperty(value = "申请次数")
    @TableField(value = "apply_nums")
    private Integer applyNums;

    @ApiModelProperty(value = "是否对外可见(是否关闭)，0-不是；1-是")
    @TableField(value = "visible")
    private String visible;

    @ApiModelProperty(value = "是否热门 0-不是；1-是")
    @TableField(value = "hot")
    private String hot;

    @ApiModelProperty(value = "是否推荐 0-不是；1-是")
    @TableField(value = "recommend")
    private String recommend;

    @ApiModelProperty(value = "是否官方 0-不是；1-是")
    @TableField(value = "official")
    private String official;

    @ApiModelProperty(value = "关闭时间")
    @TableField(value = "close_time")
    private Date close_time;

}
